package com.my.tool.lucky.model;

import java.util.Random;

public class MagicBox {

    /**
     * 幸运数字
     */
    private int lucyNumber;
    /**
     * 取多少个数字
     */
    private int pullBallSize;
    /**
     * 数字总个数
     */
    private int ballTotal;
    /**
     * 幸运星
     */
    private Random lucyStar;
    /**
     * 连续号限制
     */
    private int serialLimit;
    // blue red
    private String key;

    public static MagicBox of(int lucyNumber, int pullBoolSize, int boolTotal, Random lucyStar, int serialLimit, String key) {
        MagicBox magicBox = new MagicBox();
        magicBox.lucyNumber = lucyNumber;
        magicBox.pullBallSize = pullBoolSize;
        magicBox.ballTotal = boolTotal;
        magicBox.lucyStar = lucyStar;
        magicBox.serialLimit = serialLimit;
        magicBox.key = key;
        return magicBox;
    }

    public int getLucyNumber() {
        return lucyNumber;
    }

    public void setLucyNumber(int lucyNumber) {
        this.lucyNumber = lucyNumber;
    }

    public int getPullBallSize() {
        return pullBallSize;
    }

    public void setPullBallSize(int pullBallSize) {
        this.pullBallSize = pullBallSize;
    }

    public int getBallTotal() {
        return ballTotal;
    }

    public void setBallTotal(int ballTotal) {
        this.ballTotal = ballTotal;
    }

    public Random getLucyStar() {
        return lucyStar;
    }

    public void setLucyStar(Random lucyStar) {
        this.lucyStar = lucyStar;
    }

    public int getSerialLimit() {
        return serialLimit;
    }

    public void setSerialLimit(int serialLimit) {
        this.serialLimit = serialLimit;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("MagicBox{");
        sb.append("lucyNumber=").append(lucyNumber);
        sb.append(", pullBoolSize=").append(pullBallSize);
        sb.append(", boolTotal=").append(ballTotal);
        sb.append(", lucyStar=").append(lucyStar);
        sb.append(", serialLimit=").append(serialLimit);
        sb.append('}');
        return sb.toString();
    }
}
